<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<script	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/echarts.min.js"></script>

<div class="J_Chart_Panel">
		<div class="h_a1" style="clear: both;">
			<span class="title">90天以上代偿数据－借款</span>
			<div class="yjd-tip">
				<div style="width:900px;">
			1、90天以上本金代偿余额－借款：在指定时间23:59:59，借款人本金逾期平台垫付、借款人截止到统计时间点尚未归还、且本金逾期90天以上（含90天）对应的逾期本金之和（在应还款日后面一日记为逾期的第一天）对应的逾期本金之和（借款人在垫付时间点至当日23:59:59完成还款不计入垫付情况）</br>
2、90天以上本金代偿笔数－借款：在指定时间23:59:59，借款人本金逾期平台垫付、借款人截止到统计时间点尚未归还、且本金逾期90天以上（含90天）对应的逾期笔数（在应还款日后面一日记为逾期的第一天）本金逾期平台垫付，对应的逾期笔数（借款人在垫付时间点至当日23:59:59完成还款不计入垫付情况）</br>
3、90天以上利息代偿余额－借款：在指定时间23:59:59，借款人利息逾期平台垫付、借款人截止到统计时间点尚未归还、且利息逾期90天以上（含90天）对应的逾期本金之和（在应还款日后面一日记为逾期的第一天）</br>
4、90天以上利息代偿笔数－借款：在指定时间23:59:59，借款人利息逾期平台垫付、借款人截止到统计时间点尚未归还、且利息逾期90天以上（含90天）对应的逾期笔数（在应还款日后面一日记为逾期的第一天）</br>
5、90天以上逾期率：在指定时间23：59:59，90天以上本金代偿余额/待回收金额（含代偿余额），其中待回收金额（含代偿余额）为指标待回收金额（含代偿余额）－投资项目</br>
6、90天以上累计逾期率：在指定时间23：59:59，90天以上本金代偿余额/截止到该时间点平台投资项目累计成交额（按照满标终审时间计算）</br>
				</div>
			</div>
		</div>
		<form method="post" id="sumary_overdue" autocomplete="off" action="${requestScope.FPWEB.rootPath }/borrow/getSummaryOverdue${requestScope.FPWEB.urlStuff}">
			<div class="search_type cc">
				<label>截止时间：</label> <input type="input" max="${now }" name="end" min="2013-12-21"
					class="input length_1 mr10 J_date" value="${now }">
				<button id="search1" type="button" class="btn length_1">搜索</button>
			</div>
		</form>
		<div id="cbox">
		<div id="c2" class="count cc" >
			<div class="c-box" field="register_account">
				<div class="c-box-head">本金代偿余额（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>元</span>
				</div>
			</div>
			<div class="c-box" field="login_account">
				<div class="c-box-head">本金代偿笔数（笔）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>笔</span>
				</div>
			</div>
			<div class="c-box" field="recharge_account">
				<div class="c-box-head">利息代偿余额（元）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>元</span>
				</div>
			</div>
			<div class="c-box" field="invest_account">
				<div class="c-box-head">利息代偿笔数（笔）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>笔</span>
				</div>
			</div>
			<div class="c-box" field="overude_rate">
				<div class="c-box-head">逾期率（％）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>%</span>
				</div>
			</div>
			<div class="c-box" field="total_overude_rate">
				<div class="c-box-head">累计逾期率（％）</div>
				<div class="c-box-con">
					<span name="number" class="number">0</span>  <span>%</span>
				</div>
			</div>
	  </div>
	  </div>
	</div>
	<script>
		var form1=$("#sumary_overdue");
		$("#search1").click(function(){
			addCompareData1();
		});
		function addCompareData1() {
			var d=form1.serializeArray();
			var cbox=$("#c2");
			var boxes=cbox.find(".c-box");
			boxes.each(function(index,e){
				var val=$(this).find('span[name=number]');
				val.text("Loading...");
			});
			$.ajax({
				type: "post",
				url: form1.attr("action"),
				data :d,
				error:function(request){
					alert("连接失败！");
				},
				success:function(data){
					if (data.state == 1) {
						boxes.each(function(index,e){
							var val=$(this).find('span[name=number]');
							val.text(data.data.summaryVals[index]);
						});
					}
				}
			});
		}
		addCompareData1() ;
	</script>
